//
//  HelloWorldViewController.m
//  HelloWorld
//
//  Created by Jacob V. V. Goldberg on 6/25/12.
//  Copyright (c) 2012 FutureSight Technologies. All rights reserved.
//

#import "HelloWorldViewController.h"

@interface HelloWorldViewController ()

@end

@implementation HelloWorldViewController
@synthesize display = _display;

- (void)viewDidLoad {
    [super viewDidLoad];
	self.display.text = @"Hello, Universe!";
}

- (void)viewDidUnload {
    [self setDisplay:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}

- (IBAction)bazingaPress:(id)sender {
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"System Message" message:@"The BSD kernel has asked the following question:\nFormat hard drive?" delegate:self cancelButtonTitle:@"No" otherButtonTitles:@"Yes", nil];
	[alert show];
    
    self.display.text = @"the BSD kernel asks weird questions";
}
@end
